#ifndef __BSP_DMA_H
#define __BSP_DMA_H

#include "stm32f4xx.h"

#define DMA_CLK_ENABLE()    RCC_AHBPeriphClockCmd(RCC_AHBPeriph_DMA1, ENABLE)
#define DMAx_FLAG_TCx       DMA1_FLAG_TC3

void DMA_Config(DMA_Channel_TypeDef* DMA_CHx, uint32_t PAddr, uint32_t MAddr, uint32_t Size, const uint8_t ModeSel[3]);
void DMA_ENABLE(DMA_Channel_TypeDef* DMA_CHx);

#endif /* __BSP_DMA_H */